import math
class CircleException(Exception):
    def __init__(self):
        self.eid = 1003
        self.message = "Radius Less Than Zero"
        super().__init__(self.message)
    def Area(self,radius):
        if radius < 0:
            raise self
        area = math.pi*radius**2
        print(f"Area={area:.2f}")
class ExceptionDemo(CircleException):
    pass

obj = ExceptionDemo()  # 功能测试
n = eval(input())
for i in range(n):
    radius = eval(input())
    try:
         obj.Area(radius)
    except CircleException as e:
         print("Exception Happend! id:{} , message:{}".format(e.eid, e.message))